﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DrivingCRM.Model;
using System.Web.Security;

namespace DrivingCRM.Controller
{
    /// <summary>
    /// Classe gérant les connexions et déconnexions des utilisateurs ainsi que la gestion côté base de données
    /// </summary>
    public static class UserController
    {
        //private static EFMembershipProvider membershipProvider = new EFMembershipProvider();

        //public static string AddUser(string firstname, string lastname, string username, string password, string email,
        //                                              string passwordQuestion, string passwordAnswer, bool isApproved)
        //{
        //    MembershipCreateStatus status;
        //    MembershipUser user = UserController.membershipProvider.CreateUser(firstname, lastname, username, password, email, passwordQuestion, passwordAnswer, isApproved, null, out status);

        //    if (status == MembershipCreateStatus.Success)
        //        return "";
        //    else
        //        return status.ToString();
        //}
    }
}